<?php
/**
 * Created by PhpStorm.
 * User: zhang
 * Date: 2017/1/4
 * Time: 23:18
 */


//mb_get_info() 返回 mbstring 参数的内部设定。
//mixed mb_get_info ([ string $type = "all" ] )

if(!extension_loaded("mbstring")){
    echo "undefined".PHP_EOL;
}else{
    echo "defined".PHP_EOL;
}
//$get_loaded_extensions = get_loaded_extensions();
//var_dump($get_loaded_extensions);
//var_dump(mb_get_info ($type = "all" ));

echo 'internal_encoding:'.mb_get_info('internal_encoding').PHP_EOL;
echo 'http_output:'.mb_get_info('http_output').PHP_EOL;
echo 'http_output_conv_mimetypes:'.mb_get_info('http_output_conv_mimetypes').PHP_EOL;
echo 'internal_encoding:'.mb_get_info('internal_encoding').PHP_EOL;
echo 'internal_encoding:'.mb_get_info('internal_encoding').PHP_EOL;
echo 'internal_encoding:'.mb_get_info('internal_encoding').PHP_EOL;
echo 'internal_encoding:'.mb_get_info('internal_encoding').PHP_EOL;
//["internal_encoding"]=>
//  string(5) "UTF-8"
//["http_output"]=>
//  string(5) "UTF-8"
//["http_output_conv_mimetypes"]=>
//  string(31) "^(text/|application/xhtml\+xml)"
//["func_overload"]=>
//  int(0)
//  ["func_overload_list"]=>
//  string(11) "no overload"
//["mail_charset"]=>
//  string(5) "UTF-8"
//["mail_header_encoding"]=>
//  string(6) "BASE64"
//["mail_body_encoding"]=>
//  string(6) "BASE64"
//["illegal_chars"]=>
//  int(0)
//  ["encoding_translation"]=>
//  string(3) "Off"
//["language"]=>
//  string(7) "neutral"
//["detect_order"]=>
//  array(2) {
//    [0]=>
//    string(5) "ASCII"
//    [1]=>
//    string(5) "UTF-8"
//  }
//  ["substitute_character"]=>
//  int(63)
//  ["strict_detection"]=>

//[0]=>
//  string(4) "Core"
//[1]=>
//  string(6) "bcmath"
//[2]=>
//  string(8) "calendar"
//[3]=>
//  string(5) "ctype"
//[4]=>
//  string(4) "date"
//[5]=>
//  string(6) "filter"
//[6]=>
//  string(4) "hash"
//[7]=>
//  string(5) "iconv"
//[8]=>
//  string(4) "json"
//[9]=>
//  string(6) "mcrypt"
//[10]=>
//  string(3) "SPL"
//[11]=>
//  string(4) "pcre"
//[12]=>
//  string(10) "Reflection"
//[13]=>
//  string(7) "session"
//[14]=>
//  string(8) "standard"
//[15]=>
//  string(7) "mysqlnd"
//[16]=>
//  string(9) "tokenizer"
//[17]=>
//  string(3) "zip"
//[18]=>
//  string(4) "zlib"
//[19]=>
//  string(6) "libxml"
//[20]=>
//  string(3) "dom"
//[21]=>
//  string(3) "PDO"
//[22]=>
//  string(7) "openssl"
//[23]=>
//  string(9) "SimpleXML"
//[24]=>
//  string(3) "xml"
//[25]=>
//  string(4) "wddx"
//[26]=>
//  string(9) "xmlreader"
//[27]=>
//  string(9) "xmlwriter"
//[28]=>
//  string(4) "curl"
//[29]=>
//  string(8) "fileinfo"
//[30]=>
//  string(2) "gd"
//[31]=>
//  string(8) "mbstring"
//[32]=>
//  string(6) "mysqli"
//[33]=>
//  string(4) "Phar"
//[34]=>
//  string(9) "pdo_mysql"
//}